home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / comm / dlm140.zip / DLM.DOC < prev    next >
Text File  |  1994-03-23  |  27KB  |  586 lines

  1.    
  2.    
  3.    
  4.    
  5.    
  6.    
  7.    
  8.    
  9.    
  10.    
  11.    
  12.    
  13.    
  14.    
  15.    
  16.    
  17.    
  18.    
  19.    
  20.    
  21.                                     D L M
  22.    
  23.                               An IBM P.C. Based
  24.                              RS-232 Asynchronous
  25.                               Data Line Monitor
  26.    
  27.    
  28.    
  29.    
  30.    
  31.                                  Release 1.4
  32.    
  33.                               Revised 04-Jan-94
  34.    
  35.    
  36.    
  37.    
  38.    
  39.    
  40.    
  41.    
  42.    
  43.    
  44.    
  45.    
  46.    
  47.    
  48.    
  49.                       Copyright 1989-1994 Dave Dunfield
  50.                              All rights reserved
  51.    Data Line Monitor                                                Page: 1
  52.  
  53.  
  54.    1. INTRODUCTION
  55.    
  56.          Have you ever been in the situation  where  you  have  two  serial
  57.       devices (such as a PC and a printer),  which  SHOULD  work  but  just
  58.       don't seem to communicate? Or perhaps you are trying to debug  a  new
  59.       communications  protocol,  and  when  you  start  the  file  transfer
  60.       evrything just LOCKS UP!!!
  61.    
  62.          In such situations, wouldn't it be nice to be able to SEE  exactly
  63.       what is happening over the RS-232 cable? To SEE when characters  were
  64.       received in relation to characters going out?  To  SEE  flow  control
  65.       characters and their effect? To SEE the modem carrier drop?
  66.    
  67.          Wouldn't it be nice to do  all  this  WITHOUT  spending  $5,000  -
  68.       $10,000 on a commercial data scope?
  69.    
  70.          If your requirements are simple monitoring of ASYNCHRONOUS  RS-232
  71.       serial communications, DLM (Data Line Monitor) is for you!!!
  72.    
  73.          The DLM "package" (software and documentation) is copyrighted, and
  74.       may not be re-distributed for profit  or  other  commercial  purposes
  75.       without my written permission. If you find DLM useful, please help me
  76.       continue to support and enhance it by sending  a  "registration"  fee
  77.       (specified in the included CATALOG file) to this address:
  78.    
  79.                           Dunfield Development Systems
  80.                           P.O. Box 31044
  81.                           Nepean, Ontario (Canada)
  82.                           K2B 8S8
  83.    
  84.          Please make your  cheque  or  money  order  payable  to  "Dunfield
  85.       Development Systems". If you choose not to  order  the  complete  DLM
  86.       package, please discontinue using DLM within thirty days.
  87.    
  88.          Registered users will receive (in addition to the latest  copy  of
  89.       DLM), supplementary utilities, including  an  "error  generator"  for
  90.       inserting errors  in  data  transmission  lines,  a  VT-100  terminal
  91.       checkout program, a "pop-up" (TSR) ANSI terminal, and more.
  92.    
  93.          DLM is provided on an "as is" basis, with no warranty of any kind.
  94.       In no event shall the author be liable for any damages  arising  from
  95.       its use or distribution.
  96.    Data Line Monitor                                                Page: 2
  97.  
  98.  
  99.       1.1 What is DLM?
  100.    
  101.             DLM is an easy to use DATA LINE MONITOR for use on the IBM P.C.
  102.          It displays DTE and DCE data in a  split  line  format  (DTE  over
  103.          DCE), and records up to 32767  events  (characters  and/or  signal
  104.          transitions) in a circular buffer for later review (If the  buffer
  105.          overflows, the LAST 32767 events are available).
  106.    
  107.             Recorded data may be saved to disk, allowing a  problem  to  be
  108.          captured in the field, and the results viewed at another time  and
  109.          place. Since the data is stored as a standard DOS file, it may  be
  110.          transmitted over a modem  and  viewed  (using  DLM)  at  a  remote
  111.          location. This allows an engineer at the main  office  to  provide
  112.          better (and faster) support to a technician in the field, since he
  113.          can also SEE the problem.
  114.    
  115.             It supports ASYNCHRONOUS operation at  110,  300,  1200,  2400,
  116.          4800, 9600 and 19200 BPS; 5,6,7 and 8 data bits; Even, Odd,  Mark,
  117.          Space and No parity; and 1 or 2 stop bits. The  DTE  configuration
  118.          may be set  independantly  of  the  DCE  configuration  for  split
  119.          speed/format operation.
  120.    
  121.             The configuration may also be saved to disk,  allowing  you  to
  122.          have several "canned" setups for common situations.
  123.    
  124.             In addition to the data line monitor, DLM incorporates a SIGNAL
  125.          MONITOR (LIGHT BOX) for  real  time  monitoring  of  the  hardware
  126.          signals.
  127.    
  128.       1.2 Hardware Required
  129.    
  130.             All that is required to use DLM is an IBM P.C. (or  compatible)
  131.          which has two serial (COMM) ports. A  special  "Y"  adapter  cable
  132.          (described later) must be constructed to allow monitoring of  both
  133.          DTE and DCE data.
  134.    Data Line Monitor                                                Page: 3
  135.  
  136.  
  137.    2. HARDWARE SETUP
  138.    
  139.          Before you use DLM, you must construct a special "Y" adapter cable
  140.       which allows it to monitor "both sides" (DTE and  DCE)  of  a  single
  141.       communications line using the IBM P.C. serial ports (COM1 and COM2).
  142.    
  143.       2.1 IBM P.C. serial ports
  144.    
  145.             The serial ports of the IBM P.C. are RS-232 DTE  configuration,
  146.          and will be in either a 25 or 9 pin configuration. The ports  have
  147.          the following pinout:
  148.    
  149.            Signal name                Origin   25-Pin(PC)  9-Pin(AT)
  150.            ---------------------------------------------------------
  151.            Transmit Data       (TXD)   DTE         2           3
  152.            Receive Data        (RXD)   DCE         3           2
  153.            Request To Send     (RTS)   DTE         4           7
  154.            Clear To Send       (CTS)   DCE         5           8
  155.            Data Set Ready      (DSR)   DCE         6           6
  156.            Signal Ground       (GND)   ---         7           5
  157.            Data Carrier Detect (DCD)   DCE*        8           1
  158.            Data Terminal Ready (DTR)   DTE        20           4
  159.            Ring Indicator      (RI )   DCE        22           9
  160.    
  161.        *   In order to be able to record this signal in data capture
  162.            mode, DLM records it as if it were originated by the DTE.
  163.    
  164.             Note that since the PC serial port is  a  DTE,  it  drives  the
  165.          signals with DTE origin, and monitors the signals with DCE origin.
  166.          Therefore, all connections to the line being monitored will be  to
  167.          the DCE signals of the COMM port.
  168.    Data Line Monitor                                                Page: 4
  169.  
  170.  
  171.       2.2 Passive Monitor Cable
  172.    
  173.             DLM monitors DTE data on COM1, and DCE data on COM2. Therefore,
  174.          you must connect the input (DCE) lines from COM1 to the DTE origin
  175.          signals on the monitored line, and the input (DCE) lines from COM2
  176.          to the DCE origin signals.
  177.    
  178.             To do this, you must  construct  a  "Y"  adapter  cable,  which
  179.          contains a set of "straight through" connectors which are inserted
  180.          in the RS-232 line being monitored, and also connects the DTE  and
  181.          DCE signals to the appropriate input (DCE) pins on COM1 and  COM2.
  182.          Be sure to mark which COMM port each of the  two  "PC"  connectors
  183.          connects to. If you get  them  backwards,  the  DTE/DCE  data  and
  184.          signals will appear reversed.
  185.    
  186.             "Straight  through"                          "IBM PC"
  187.           Line Monitor Connector                   COMM port connectors
  188.    
  189.    
  190.                DB-25    Male                    /----- COM1 (Monitor DTE)
  191.                | | | | | | |                   /
  192.                +-+-+-+-+-+-+==================<
  193.                | | | | | | |                   \
  194.                DB-25  Female                    \----- COM2 (Monitor DCE)
  195.    
  196.    
  197.        The signals must be connected as follows:
  198.    
  199.            Line   Pin          Port    25-Pin(PC)  9-Pin(AT)
  200.            -------------------------------------------------
  201.            TXD     2   ----    COM1        3           2
  202.